﻿@model IEnumerable<Items>

@{
		ViewBag.Title = "Order Item Details";
		Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@ViewBag.Title</h2>
<hr/>


<div style="margin-bottom: 30px">
		<div class="dropdown pull-right">
				<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown" style="margin-right: 10px"><span class="glyphicon glyphicon-floppy-disk">&nbsp;</span>Export&nbsp;&nbsp;<span class="caret"></span></button>
				<ul class="dropdown-menu">
						<li><a href="">Excel (.xls)</a></li>
						<li><a href="">Word (.doc)</a></li>
						<li><a href="">CSV (.csv)</a></li>
				</ul>
				<button class="btn btn-primary pull-right" onclick="javascript: print();"><span class="glyphicon glyphicon-print"></span>&nbsp;Print</button>
		</div>
</div>





<div>
		<h4>Details for Order</h4>

		<table class="table table-bordered table-hover table-responsive" style="background-color: #cdcdcd">
				<tr>
						<th>
								@Html.DisplayNameFor(model => model.item_name)
						</th>
						<th>
								@Html.DisplayNameFor(model => model.item_unit)
						</th>
						<th>
								@Html.DisplayNameFor(model => model.item_quantity)
						</th>
				</tr>
				@foreach (var item in Model)
				{
						<tr>
								<td>
										@item.item_name
								</td>
								<td>
										@item.item_unit
								</td>
								<td>
										@item.item_quantity
								</td>
						</tr>
				}
		</table>
</div>
